package labox.innovation.gameserver.network.loginserverpackets;

/**
 * 接受从登陆服务器返回的授权信息
 *
 */
public class AuthResponse extends LoginServerBasePacket {

	private int _serverId;

	private String _serverName;

	/**
	 * @param decrypt
	 */
	public AuthResponse(byte[] decrypt) {
		super(decrypt);
		_serverId = readUnByte();
		_serverName = readString();
	}

	/**
	 * @return 返回游戏服务器的最终被分配的ID
	 */
	public int getServerId() {
		return _serverId;
	}

	/**
	 * @return 返回游戏服务器名称.
	 */
	public String getServerName() {
		return _serverName;
	}

}
